package com.bwie.goods.service.impl;

import com.bwie.common.domain.Rating;
import com.bwie.common.result.Result;
import com.bwie.goods.mapper.RatingMapper;
import com.bwie.goods.service.RatingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RatingServiceimpl implements RatingService {
    @Autowired
    RatingMapper ratingMapper;

    @Override
    public Result<List<Rating>> list() {
        List<Rating> list=ratingMapper.list();
        return Result.success(list);
    }
}
